Integrand size = 21, antiderivative size = 19 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\frac {x}{a}+\frac {\cos (c+d x)}{a d} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2761, 8} \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\frac {\cos (c+d x)}{a d}+\frac {x}{a} \]
[In]
[Out]
Rule 8
Rule 2761
Rubi steps \begin{align*} \text {integral}& = \frac {\cos (c+d x)}{a d}+\frac {\int 1 \, dx}{a} \\ & = \frac {x}{a}+\frac {\cos (c+d x)}{a d} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(97\) vs. \(2(19)=38\).
Time = 0.10 (sec) , antiderivative size = 97, normalized size of antiderivative = 5.11 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=-\frac {\cos ^3(c+d x) \left (2 \arcsin \left (\frac {\sqrt {1-\sin (c+d x)}}{\sqrt {2}}\right ) \sqrt {1-\sin (c+d x)}+(-1+\sin (c+d x)) \sqrt {1+\sin (c+d x)}\right )}{a d (-1+\sin (c+d x))^2 (1+\sin (c+d x))^{3/2}} \]
[In]
[Out]
Time = 0.15 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.00
method | result | size |
parallelrisch | \(\frac {d x +\cos \left (d x +c \right )-1}{a d}\) | \(19\) |
risch | \(\frac {x}{a}+\frac {\cos \left (d x +c \right )}{a d}\) | \(20\) |
derivativedivides | \(\frac {\frac {2}{1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}+2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}\) | \(35\) |
default | \(\frac {\frac {2}{1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}+2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}\) | \(35\) |
norman | \(\frac {\frac {x}{a}+\frac {x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}+\frac {x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {x \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {2}{a d}+\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}+\frac {2 x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {2 x \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {2 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {2 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}\) | \(179\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.89 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\frac {d x + \cos \left (d x + c\right )}{a d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 88 vs. \(2 (12) = 24\).
Time = 0.97 (sec) , antiderivative size = 88, normalized size of antiderivative = 4.63 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\begin {cases} \frac {d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} + \frac {d x}{a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} + \frac {2}{a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{2}{\left (c \right )}}{a \sin {\left (c \right )} + a} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 52 vs. \(2 (19) = 38\).
Time = 0.28 (sec) , antiderivative size = 52, normalized size of antiderivative = 2.74 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\frac {2 \, {\left (\frac {\arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} + \frac {1}{a + \frac {a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}\right )}}{d} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.79 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\frac {\frac {d x + c}{a} + \frac {2}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )} a}}{d} \]
[In]
[Out]
Time = 2.37 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.53 \[ \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx=\frac {x}{a}+\frac {2}{a\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )} \]
[In]
[Out]